
package com.ktgj.common.spring.entity.iata.iata_airshoppingrs;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>FareComponentType complex type的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * 
 * <pre>
 * &lt;complexType name="FareComponentType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="CabinType" type="{http://www.iata.org/IATA/2015/00/2018.2/IATA_AirShoppingRS}CabinTypeType" minOccurs="0"/&gt;
 *         &lt;element name="FareBasisAppCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
 *         &lt;element name="FareBasisCityPairText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
 *         &lt;element name="FareBasisCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
 *         &lt;element name="FareRule" type="{http://www.iata.org/IATA/2015/00/2018.2/IATA_AirShoppingRS}FareRuleType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="FareTypeCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
 *         &lt;element name="PaxSegmentRefID" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="Price" type="{http://www.iata.org/IATA/2015/00/2018.2/IATA_AirShoppingRS}PriceType" minOccurs="0"/&gt;
 *         &lt;element name="PriceClassRefID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
 *         &lt;element name="RBD" type="{http://www.iata.org/IATA/2015/00/2018.2/IATA_AirShoppingRS}RBDType" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FareComponentType", propOrder = {
    "cabinType",
    "fareBasisAppCode",
    "fareBasisCityPairText",
    "fareBasisCode",
    "fareRule",
    "fareTypeCode",
    "paxSegmentRefID",
    "price",
    "priceClassRefID",
    "rbd"
})
public class FareComponentType {

    @XmlElement(name = "CabinType")
    protected CabinTypeType cabinType;
    @XmlElement(name = "FareBasisAppCode")
    protected String fareBasisAppCode;
    @XmlElement(name = "FareBasisCityPairText")
    protected String fareBasisCityPairText;
    @XmlElement(name = "FareBasisCode")
    protected String fareBasisCode;
    @XmlElement(name = "FareRule")
    protected List<FareRuleType> fareRule;
    @XmlElement(name = "FareTypeCode")
    protected String fareTypeCode;
    @XmlElement(name = "PaxSegmentRefID")
    protected List<String> paxSegmentRefID;
    @XmlElement(name = "Price")
    protected PriceType price;
    @XmlElement(name = "PriceClassRefID")
    protected String priceClassRefID;
    @XmlElement(name = "RBD")
    protected RBDType rbd;

    /**
     * 获取cabinType属性的值。
     * 
     * @return
     *     possible object is
     *     {@link CabinTypeType }
     *     
     */
    public CabinTypeType getCabinType() {
        return cabinType;
    }

    /**
     * 设置cabinType属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link CabinTypeType }
     *     
     */
    public void setCabinType(CabinTypeType value) {
        this.cabinType = value;
    }

    /**
     * 获取fareBasisAppCode属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getFareBasisAppCode() {
        return fareBasisAppCode;
    }

    /**
     * 设置fareBasisAppCode属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setFareBasisAppCode(String value) {
        this.fareBasisAppCode = value;
    }

    /**
     * 获取fareBasisCityPairText属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getFareBasisCityPairText() {
        return fareBasisCityPairText;
    }

    /**
     * 设置fareBasisCityPairText属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setFareBasisCityPairText(String value) {
        this.fareBasisCityPairText = value;
    }

    /**
     * 获取fareBasisCode属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getFareBasisCode() {
        return fareBasisCode;
    }

    /**
     * 设置fareBasisCode属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setFareBasisCode(String value) {
        this.fareBasisCode = value;
    }

    /**
     * Gets the value of the fareRule property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the fareRule property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getFareRule().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link FareRuleType }
     * 
     * 
     */
    public List<FareRuleType> getFareRule() {
        if (fareRule == null) {
            fareRule = new ArrayList<FareRuleType>();
        }
        return this.fareRule;
    }

    /**
     * 获取fareTypeCode属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getFareTypeCode() {
        return fareTypeCode;
    }

    /**
     * 设置fareTypeCode属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setFareTypeCode(String value) {
        this.fareTypeCode = value;
    }

    /**
     * Gets the value of the paxSegmentRefID property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the paxSegmentRefID property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getPaxSegmentRefID().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link String }
     * 
     * 
     */
    public List<String> getPaxSegmentRefID() {
        if (paxSegmentRefID == null) {
            paxSegmentRefID = new ArrayList<String>();
        }
        return this.paxSegmentRefID;
    }

    /**
     * 获取price属性的值。
     * 
     * @return
     *     possible object is
     *     {@link PriceType }
     *     
     */
    public PriceType getPrice() {
        return price;
    }

    /**
     * 设置price属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link PriceType }
     *     
     */
    public void setPrice(PriceType value) {
        this.price = value;
    }

    /**
     * 获取priceClassRefID属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getPriceClassRefID() {
        return priceClassRefID;
    }

    /**
     * 设置priceClassRefID属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPriceClassRefID(String value) {
        this.priceClassRefID = value;
    }

    /**
     * 获取rbd属性的值。
     * 
     * @return
     *     possible object is
     *     {@link RBDType }
     *     
     */
    public RBDType getRBD() {
        return rbd;
    }

    /**
     * 设置rbd属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link RBDType }
     *     
     */
    public void setRBD(RBDType value) {
        this.rbd = value;
    }

}
